package com.george.es.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/6/19 10:14
 * @version 1.0
 * @since jdk1.8
 */
@Component
@ConfigurationProperties(prefix = "tmp")
public class PropertiesUtils {
    // 临时文件存放目录
    @Value("${tmp.dir}")
    private String tmpPath;
    // 解压程序目录
    @Value("${tmp.winrarpath}")
    private String winrarPath;

    public String getTmpPath() {
        return tmpPath;
    }

    public void setTmpPath(String tmpPath) {
        this.tmpPath = tmpPath;
    }

    public String getWinrarPath() {
        return winrarPath;
    }

    public void setWinrarPath(String winrarPath) {
        this.winrarPath = winrarPath;
    }
}
